package com.njbdqn.springBatis.demo;

import org.apache.commons.dbcp.BasicDataSource;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;

import com.njbdqn.springBatis.dao.IUserinfosDAO;

public class Demo {
	public static void main(String[] args) {
	ApplicationContext ac=new ClassPathXmlApplicationContext("spring.xml");
	IUserinfosDAO udao=ac.getBean(IUserinfosDAO.class);
	System.out.println(udao.findAll());
	}
}
